<template>
  <div>二维码</div>
</template>

<script>
import QRCode from 'qrcodejs2'
export default {
  name: 'qrcode',
  props: {
    props: {
      id: {
        type: String,
        required: true,
      },
      text: {
        // 后端返回的二维码地址
        type: String,
        default: 'http://jindo.dev.naver.com/collie',
      },
      width: {
        type: String,
        default: '128',
      },
      height: {
        type: String,
        default: '128',
      },
      colorDark: {
        type: String,
        default: '#000000',
      },
      colorLight: {
        type: String,
        default: '#ffffff',
      },
    },
    data() {
      return {
        qrcode: '',
      }
    },
  },
}
</script>

<style></style>
